package com.pactera.miyuangroup.db.mapper;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.pactera.miyuangroup.db.entity.VendorInfo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.pactera.miyuangroup.vo.response.app.AppPageVenderRes;
import com.pactera.miyuangroup.vo.response.web.VehicleInfoRes;
import com.pactera.miyuangroup.vo.response.web.VendorInfoRes;
import com.pactera.miyuangroup.vo.response.web.VendorPassagewayRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 售货机 Mapper 接口
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
public interface VendorInfoMapper extends BaseMapper<VendorInfo> {



    /*
    * 查询收获机信息列表
    * */
    List<VendorInfoRes> selectVehicleInfoResList(Pagination pagination, @Param("ew")EntityWrapper wrapper);

    /*
     * 通过 job number 查询车辆信息。
     * */

    VehicleInfoRes selectOneVehicleInfo(@Param("ew")EntityWrapper wper);


    /*
    * 查询售货机货道信息
    * */
    List<VendorPassagewayRes> selectOnePassagewayList(@Param("ew")EntityWrapper wrapper);


    List<AppPageVenderRes> selectAppPageVenderInfo(Pagination pagination, @Param("ew")EntityWrapper wrapper);

    /**
     * 查询售货机 商品总数量
     * @param vendorId
     * @return
     */
    Integer selectVendorPassagewayTotal(@Param("vendorId") String vendorId);
}
